package com.tempjob.app.dto;

import com.anwen.mongo.annotation.collection.CollectionField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户信息
 */
@Data
@ApiModel
public class ModifyUserInfoDTO implements Serializable {

    @CollectionField(value = "real_name")
    @ApiModelProperty("姓名")
    private String realName;

    @CollectionField(value = "avatar")
    @ApiModelProperty("头像")
    private String avatar;

    @CollectionField("user_type")
    @ApiModelProperty("身份类型：1找工作2招工")
    private Integer userType;

    @ApiModelProperty("学历")
    private String education;

    @ApiModelProperty("个人优势")
    private String advantage;

    @ApiModelProperty("求职状态：1求职中2在职求职")
    private Integer hireStatus;

    @ApiModelProperty("参加工作时间yyyy-MM")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date startWorkTime;


}
